package org.dromara.hm.domain;

import org.dromara.common.mybatis.core.domain.BaseEntity;
import com.baomidou.mybatisplus.annotation.*;
import lombok.Data;
import lombok.EqualsAndHashCode;
import org.dromara.common.translation.annotation.Translation;
import org.dromara.common.translation.constant.TransConstant;

import java.io.Serial;
import java.math.BigDecimal;

/**
 * 出入库记录对象 hm_issue_receipt_records
 *
 * @author zy Hu
 * @date 2024-12-15
 */
@Data
@EqualsAndHashCode(callSuper = true)
@TableName("hm_issue_receipt_records")
public class HmIssueReceiptRecords extends BaseEntity {

    @Serial
    private static final long serialVersionUID = 1L;

    /**
     * 记录id
     */
    @TableId(value = "record_id")
    private Long recordId;

    /**
     * 记录商品id
     */
    private Long recordProductId;

    /**
     * 记录产品名称
     */

    private String recordProductName;

    /**
     * 记录产品类型
     */
    private String recordProductType;

    /**
     * 记录数量
     */
    private BigDecimal recordNum;

    /**
     * 记录类型
     */
    private String recordType;

    /**
     * 记录起始所在仓库
     */

    private String recordStartLocation;

    /**
     * 记录终点所在仓库
     */
    private String recordEndLocation;

    /**
     * 记录起始所在仓库
     */
    @Translation(type= TransConstant.DEPT_ID_TO_NAME,mapper = "recordStartLocation")
    private String recordStartLocationName;


    /**
     * 记录终点所在仓库
     */
    @Translation(type= TransConstant.DEPT_ID_TO_NAME,mapper = "recordEndLocation")
    private String recordEndLocationName;

    /**
     * 状态
     */
    private String status;

    /**
     * 备注
     */
    private String remark;

    /**
     * 是否删除
     */
    @TableLogic
    private Boolean delFlag;

    /**
     * 赠品人员id集合
     */
    private String userOrCustomerIds;

    /**
     * 可修改次数
     */
    private Integer modifiableTimes;

    /**
     * 外围市场
     */
    private String peripheralMarket;


}
